package com.ipnc.dss.config;

/**
 * @author dp
 * 
 */
public class Config {
	public static final int TEST_TIME = 1;
	public static final int MAX_DETECT_TIMES = 3;

	public static final int PACKET_SIZE = 1024 * 20;

	public static final String MAIN_TEL_SERVER = "113.105.146.186";
	public static final String MAIN_CNC_SERVER = "112.90.217.26";

	public static final int MAX_P2P_VIEWER_SUPPORT = 1;
	public static final int MAX_PSP_VIEWER_SUPPORT = 5;

	public static final long HEALTH_CEHCK_INTERNAL_MIN = 120;
	public static final long RESOURCE_RELOAD_INTERNAL_HOUR = 24;

	public static final int CONNECT_TIMEOUT = 3000;
	public static final int WRITE_TIMEOUT = 1000;

	public static final String BIT_RATE_2048 = "2048";
	public static final String BIT_RATE_1024 = "1024";
	public static final String BIT_RATE_0512 = "512";
	public static final String BIT_RATE_0256 = "256";

	public static final String FRAME_RATE_30 = "30";
	public static final String FRAME_RATE_20 = "20";
	public static final String FRAME_RATE_15 = "15";
	public static final String FRAME_RATE_10 = "10";

	public static final String CODEC_MJPG = "0";
	public static final String CODEC_MP4S = "1";
	public static final String CODEC_H264 = "2";

	public static final String RESOLUTION_HDP1 = "0";
	public static final String RESOLUTION_VGA1 = "1";
	public static final String RESOLUTION_VGA2 = "2";

	public static final String STREAM_0 = "0";
	public static final String STREAM_1 = "1";
	public static final String STREAM_2 = "2";
	public static final String STREAM_3 = "3";

	public static final String PRODUCT_REGISTER_0 = "0";// 已生产
	public static final String PRODUCT_REGISTER_1 = "1";// 已销售
	public static final String PRODUCT_REGISTER_2 = "2";// 已注册
	public static final String PRODUCT_REGISTER_3 = "3";// 已确认

	public static final String ACTIVE_STATUC_0 = "0";// 未连接
	public static final String ACTIVE_STATUC_1 = "1";// 已连接

	public static final String IPCAME_ATTRIBUTE = "ipncSn";
	public static final String VIEWER_ATTRIBUTE = "ipncId";

	public static final String VIWEER_TYPE_ATTRIBUTE = "viewerType";
	public static final String VIWEER_TYPE_P2P = "0";
	public static final String VIWEER_TYPE_PSP = "1";
	public static final String VIWEER_TYPE_P2P_PSP = "2";

	public static final String IPCAME_MARK = "@";
	public static final String VIEWER_MARK = "&";
	public static final String SERVER_MARK = "#";
	public static final String ADMIN_MARK = "*";

	public static final String UTF8 = "utf-8";
	public static final String COMMAND_SPLIT = " ";
	public static final String COMMAND_SPLIT_2 = "@";
	public static final String COMMAND_SPLIT_3 = "&";

	public static final int TCP_J_PORT = 1122;
	public static final int TCP_C_PORT = 1133;
	public static final int P2P_J_PORT = 1144;
	public static final int P2P_C_PORT = 1155;
	public static final int PSP_J_PORT = 1166;
	public static final int PSP_C_PORT = 1177;

	public static final String COMMAND_EXECUTE_SUCCESSFUL = "SUCCESSFUL";
	public static final String COMMAND_EXECUTE_FAILED = "FAILED";

}